<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  <title>LCOV - qgetopt test coverage - object/optionManager/optArgument.h</title>
  <link rel="stylesheet" type="text/css" href="../../gcov.css">
</head>

<body>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="title">LTP GCOV extension - code coverage report</td></tr>
    <tr><td class="ruler"><img src="../../glass.png" width=3 height=3 alt=""></td></tr>

    <tr>
      <td width="100%">
        <table cellpadding=1 border=0 width="100%">
        <tr>
          <td class="headerItem" width="20%">Current&nbsp;view:</td>
          <td class="headerValue" width="80%" colspan=4><a href="../../index.html">directory</a> - <a href="index.html">object/optionManager</a> - optArgument.h</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Test:</td>
          <td class="headerValue" width="80%" colspan=4>qgetopt test coverage</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Date:</td>
          <td class="headerValue" width="20%">2009-08-26</td>
          <td width="20%"></td>
          <td class="headerItem" width="20%">Instrumented&nbsp;lines:</td>
          <td class="headerValue" width="20%">2</td>
        </tr>
        <tr>
          <td class="headerItem" width="20%">Code&nbsp;covered:</td>
          <td class="headerValue" width="20%">100.0 %</td>
          <td width="20%"></td>
          <td class="headerItem" width="20%">Executed&nbsp;lines:</td>
          <td class="headerValue" width="20%">2</td>
        </tr>
        </table>
      </td>
    </tr>
    <tr><td class="ruler"><img src="../../glass.png" width=3 height=3 alt=""></td></tr>
  </table>

  <table cellpadding=0 cellspacing=0 border=0>
    <tr>
      <td><br></td>
    </tr>
    <tr>
      <td><pre class="source">
<span class="lineNum">       1 </span>                : #ifndef OPT_ARGUMENT_H
<span class="lineNum">       2 </span>                : #define OPT_ARGUMENT_H
<span class="lineNum">       3 </span>                : 
<span class="lineNum">       4 </span>                : #include &lt;QtCore&gt;
<span class="lineNum">       5 </span>                : /*! \ingroup qgetopt
<span class="lineNum">       6 </span>                :     \brief The OptArgument class holds details of an argument.
<span class="lineNum">       7 </span>                : 
<span class="lineNum">       8 </span>                :     This class is a private class and instances are only created by the OptManager or OptSwitch object.
<span class="lineNum">       9 </span>                :     Both of which are friend classes.
<span class="lineNum">      10 </span>                : 
<span class="lineNum">      11 </span>                :     An argument will have a \em name, and a flag indicating if it is \em mandatory.
<span class="lineNum">      12 </span>                : 
<span class="lineNum">      13 </span>                :  * \attention This program is free software; you can redistribute it and/or modify
<span class="lineNum">      14 </span>                :  * it under the terms of the GNU General Public License as published by
<span class="lineNum">      15 </span>                :  * the Free Software Foundation; either version 2 of the License, or
<span class="lineNum">      16 </span>                :  * (at your option) any later version.
<span class="lineNum">      17 </span>                :  *
<span class="lineNum">      18 </span>                :  * \attention This program is distributed in the hope that it will be useful,
<span class="lineNum">      19 </span>                :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
<span class="lineNum">      20 </span>                :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
<span class="lineNum">      21 </span>                :  * GNU General Public License for more details.
<span class="lineNum">      22 </span>                :  *
<span class="lineNum">      23 </span>                :  * \attention You should have received a copy of the GNU General Public License
<span class="lineNum">      24 </span>                :  * along with this program; if not, write to the
<span class="lineNum">      25 </span>                :  * Free Software Foundation, Inc.,
<span class="lineNum">      26 </span>                :  * 59 Temple Place - Suite 330, Boston, MA  02111-1307  USA
<span class="lineNum">      27 </span>                :  *
<span class="lineNum">      28 </span>                :    \author    Graeme
<span class="lineNum">      29 </span>                :    \date Copyright (C) 2008-9  Graeme Foster
<span class="lineNum">      30 </span>                : */
<span class="lineNum">      31 </span>                : class OptArgument
<span class="lineNum">      32 </span>                : {
<span class="lineNum">      33 </span>                :    friend class OptManager;
<span class="lineNum">      34 </span>                :    friend class OptSwitch;
<span class="lineNum">      35 </span>                :    private:
<span class="lineNum">      36 </span>                : 
<span class="lineNum">      37 </span>                :       //! The name of the argument
<span class="lineNum">      38 </span>                :       QString name;
<span class="lineNum">      39 </span>                : 
<span class="lineNum">      40 </span>                :       //! Flag indicating if the argument is mandatory \em true or optional \em false.
<span class="lineNum">      41 </span>                :       bool   mandatory;
<span class="lineNum">      42 </span>                : 
<span class="lineNum">      43 </span>                :       //! Private constructor
<span class="lineNum">      44 </span>                :       OptArgument(QString arg);
<span class="lineNum">      45 </span>                : 
<span class="lineNum">      46 </span>                :       //! Private copy constructor for singleton class
<span class="lineNum">      47 </span>                :       OptArgument(const OptArgument&amp;);
<span class="lineNum">      48 </span>                : 
<span class="lineNum">      49 </span>                :       //! Used to display the argument in the help screen
<span class="lineNum">      50 </span>                :       QString help();
<span class="lineNum">      51 </span>                : 
<span class="lineNum">      52 </span>                :       //! Return true if the argument is mandatory.
<span class="lineNum">      53 </span><span class="lineCov">             73 :       bool isMandatory(){return mandatory;}</span>
<span class="lineNum">      54 </span>                : 
<span class="lineNum">      55 </span>                :       //! Return true if the argument is optional.
<span class="lineNum">      56 </span><span class="lineCov">             27 :       bool isOptional(){return !mandatory;}</span>
<span class="lineNum">      57 </span>                : };
<span class="lineNum">      58 </span>                : #endif
</pre>
      </td>
    </tr>
  </table>
  <br>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
  <tr><td class="ruler"><img src="../../glass.png" width=3 height=3 alt=""></td></tr>
  <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LTP GCOV extension version 1.6</a></td></tr>
  </table>
  <br>

</body>
</html>
